icon = gbfgetc(file_in);
wpt_tmp->icon_descr = bushnell_get_name_from_symbol(icon);
unknown = gbfgetc(file_in);
- wpt_tmp->latitude = lat_tmp / 10000000.0;
+ wpt_tmp->latitude = lat_tmp / 10000000.0;
wpt_tmp->longitude = lon_tmp / 10000000.0;
// Apparently this is always zero terminated, though it's never been
/* Global variables */
static gbfile *file_in, *file_out;
-static short_handle mkshort_handle;
static gbuint16 nof_wp;
static route_head *rte_head;
static ng_file_header_t ng_file_header;
{
file_in = gbfopen_le(fname, "rb", MYNAME);
- mkshort_handle = mkshort_new_handle();
ng_read_file_header();
if (NULL != process) {
{
gbfclose(file_in);
file_in = NULL;
- mkshort_del_handle(&mkshort_handle);
}
${OD} $2 >${TMPDIR}/bc2
${DIFF} ${TMPDIR}/bc1 ${TMPDIR}/bc2 || {
echo ERROR binary comparing $*
+cat ${TMPDIR}/bc1
+cat ${TMPDIR}/bc2
exit 1
}
}
--- /dev/null
+rm -f ${TMPDIR}/bushnell.*
+gpsbabel -i bushnell -f ${REFERENCE}/bushnell.wpt -o gpx -F ${TMPDIR}/bushnell.gpx
+compare ${REFERENCE}/bushnell.gpx ${TMPDIR}/bushnell.gpx
+
+# This format has a goofy output naming convention; each wpt must be in a
+# unique file, so the output name is a template.
+gpsbabel -i bushnell -f ${REFERENCE}/bushnell.wpt -o bushnell -F ${TMPDIR}/bushnell
+# bincompare ${REFERENCE}/bushnell.wpt ${TMPDIR}/bushnell-0.wpt
+
+gpsbabel -i bushnell_trl -f ${REFERENCE}/bushnell_trl.trl -o gpx -F ${TMPDIR}/bushnell_trl.gpx
+compare ${REFERENCE}/bushnell_trl.gpx ${TMPDIR}/bushnell_trl.gpx
"Memory-Map Navigator overlay files (.mmo)",
"mmo"
},
-#if PLANE || 1
{
&bushnell_vecs,
"bushnell",
"Bushnell GPS Trail file",
"trl"
},
-#endif
{
&skyforce_vecs,
"skyforce",